#include "Location.h"

namespace dwarf {

Location::Location(Type _type)
		: type_(_type),
		  address_(NULL),
		  size_(0) {
}

Location::Location(Type _type, const void *_address, size_t _size)
		: type_(_type),
		  address_(_address),
		  size_(_size) {
}

Location::Location(const Location &_location)
		: type_(_location.type_),
		  address_(_location.address_),
		  size_(_location.size_) {
}

Location::~Location() {
}

Location::Type Location::getType() const {
	return type_;
}

void Location::setType(Type _type) {
	type_ = _type;
}

const void *Location::getAddress() const {
	return address_;
}

void Location::setAddress(const void *_address) {
	address_ = _address;
}

size_t Location::getSize() const {
	return size_;
}

void Location::setSize(size_t _size) {
	size_ = _size;
}

}
